from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

#urlpatterns = patterns('',
#    # Example:
#    # (r'^pollsite/', include('pollsite.foo.urls')),
#
#    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
#    # to INSTALLED_APPS to enable admin documentation:
#    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
#
#    # Uncomment the next line to enable the admin:
#    (r'^admin/(.*)', admin.site.root),
#    (r'^polls/$', 'pollsite.polls.views.index'),
#    (r'^polls/(?P<poll_id>\d+)/$', 'pollsite.polls.views.detail'),
#    #(r'^polls/(?P<poll_id>\d+)/results/$', 'pollsite.polls.views.results'),
#    #(r'^polls/(?P<poll_id>\d+)/vote/$', 'pollsite.polls.views.vote'),
#)

urlpatterns = patterns('pollsite.polls.views',
    (r'^$', 'index'),
    (r'^(?P<poll_id>\d+)/$', 'detail'),
    #(r'^(?P<poll_id>\d+)/results/$', 'results'),
    #(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)